package com.bw.mvvm_common.utils;

import android.text.TextUtils;

import com.blankj.utilcode.util.EncryptUtils;

import java.util.Arrays;

/**
 * @author KK
 * @description:
 * @date :2021/10/13 15:14
 */
public class SignUtils {

    public static String createSign(String value){
        if(TextUtils.isEmpty(value)){
            return "";
        }
        String sign;
        //字符串转字节
        char[] buff = value.toCharArray();
        Arrays.sort(buff);
        //生成新字符串
        sign = new String(buff);
        sign+="tamboo";
        return EncryptUtils.encryptMD5ToString(sign).toLowerCase();


    }
}
